close all; clear; clc;

RandStream.setDefaultStream(RandStream('mt19937ar','seed',sum(100*clock)));

maxMoves = 200;
playedAlready = false;

if playedAlready
    load games;
    [tables, actions, scores, pieces, moveRatings] = ...
            assignTableActionPairs(maxMoves, tables, actions, scores, ...
                    pieces, moveRatings);
else
    [tables, actions, scores, pieces, moveRatings] = ...
        assignTableActionPairs(maxMoves);
end

save games tables actions scores pieces moveRatings;
